import { takeEvery, delay, put } from "redux-saga/effects";
import { showModal } from "../actions/modal.actions";
import { SHOW_ASYNC } from "../const/modal.const";

function* show_async_fn() {
  yield delay(2000)
  yield put(showModal())
}

export default function* modalSaga() {
  yield takeEvery(SHOW_ASYNC, show_async_fn)
}